package com.jksoft.meteo.client;

import com.jksoft.meteo.data.WeatherForecast;
import com.jksoft.meteo.util.WeatherException;

public abstract class AbstractWeatherReader implements IWeatherReader {
	protected WeatherForecast wf;
	protected String location;

	public AbstractWeatherReader(String location) {
		this.location = location.replace(' ', '-');
	}

	public String getLocation() {
		return this.location;
	}

	public void setLocation(String location) {
		this.location = location.replace(' ', '-');
	}

	public WeatherForecast getWeatherForecast() {
		return this.wf;
	}

	public void setWeatherForecast(WeatherForecast wf) {
		this.wf = wf;
	}

	public abstract void process() throws WeatherException;
}
